home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9241 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  45 lines

  1. Newsgroups: comp.lang.c
  2. Path: eso.org!news
  3. From: Nicolas Devillard <nDevil@eso.org>
  4. Subject: Re: C-function for string similarity
  5. X-Nntp-Posting-Host: mc14
  6. Content-Type: text/plain; charset=us-ascii
  7. Message-ID: <313C4368.2FDE@eso.org>
  8. Sender: news@eso.org
  9. Content-Transfer-Encoding: 7bit
  10. Organization: ESO - European Southern Observatory, Garching by Munich
  11. References: <4hgsg2$95s@kralle.zdv.Uni-Mainz.DE>
  12. Mime-Version: 1.0
  13. Date: Tue, 05 Mar 1996 14:36:40 +0100
  14. X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
  15.  
  16. Robert Mueller wrote:
  17. > Hallo,
  18. > I am looking for a clever C-function (or LISP, PROLOG etc) taking two
  19. > strings as input and "evaluating" the measure of similarity between the
  20. > strings. For example, if the
  21. > strings are identical, the function should return 1, if they share no
  22. > characters at all, it should return 0. If they share some characters, and
  23. > these characters have a "comparable" position and order in this string,
  24. > the function should return something between 0 and 1, indicating the
  25. > degree of similarity.
  26. > Any pointer to libraries or code with such a clever function are welcome.
  27. > Thank you very much in advance.
  28. > Robert
  29.  
  30.  
  31. Problem is : what do you call similarity ?
  32. There is virtually an infinite number of ways to measure a distance
  33. between 2 objects, binary or not. See some books about pattern
  34. matching for that sake. Roots are taken from mathematical topology
  35. in this field, you may want to have a look at that first.
  36.  
  37. Then maybe there exists C-code to implement this :)
  38.  
  39. Hope it helps,
  40. Nicolas
  41.